/**
 * 
 */
package com.adkfp.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.adkfp.bean.ADKAccessLogBean;
import com.adkfp.bean.ADKControllerBean;
import com.adkfp.common.ControllerTime;
import com.adkfp.service.IADKAccessLogService;
import com.adkfp.service.IADKControllerService;

/**
 * @author qwertyuiop
 *
 */
@Controller
@RequestMapping("aDKAccessLog")
public class ADKAccessLogAction {

	@Resource(name="aDKAccessLogService")
	 private IADKAccessLogService aDKAccessLogService;
	
	@Resource(name="aDKControllerService")
	private IADKControllerService aDKControllerService;
	
	@RequestMapping("index")
	public String index() {
		return "aDKAccessLog/AccessLogTree";
	}
	
	@RequestMapping("index1")
	public String index1() {
		return "aDKAccessLog/AccessLogFind";
	}
	
	
	//转发页面到添加(修改)页面 -FMY-
	@RequestMapping("toAddAccessLog")
	public String toAddAccessLog(HttpServletRequest request, String id,HttpServletResponse response) {
		ADKControllerBean conBean = new ADKControllerBean();	
		if(id != null && !id.equals("")){
			conBean=aDKControllerService.findByIdToo(Integer.parseInt(id));
		}
		request.setAttribute("conBean",conBean);
		return "aDKAccessLog/AccessLogRight"; 
	}
	
	
}
